import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import java.util.UUID;

public class strTest {
    public static void main(String[] args) {
        Set<String> set = new HashSet<>();
        int i = 1;
        while (true){
            set.add(String.valueOf(UUID.randomUUID()));
            if (set.size()!=i){
                System.out.println(i);
                break;
            }
            i++;
        }
    }
}
